//
//  CarPicCollectionViewCell.m
//  MansApp
//
//  Created by lanou3g on 15/7/18.
//  Copyright (c) 2015年 ACH. All rights reserved.
//

#import "CarPicCollectionViewCell.h"

@implementation CarPicCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        
        self.picImageView = [[UIImageView alloc]initWithFrame:CGRectZero];
        [self.contentView addSubview: self.picImageView];
        
    }
    return self;
}

- (void)layoutSubviews{
    
    [super layoutSubviews];
    UIImage *image = self.picImageView.image;
    CGSize size = image.size;
    
    CGFloat  scale =  size.width / 150;
    
    self.picImageView.frame = CGRectMake(0, 0, 150, size.height / scale);
    
}


@end
